package com.pinxixi.api.goods;

import com.pinxixi.framework.domain.goods.Goods;
import com.pinxixi.framework.domain.goods.ext.GoodsEntity;
import com.pinxixi.framework.model.response.ListResponseResult;
import com.pinxixi.framework.model.response.QueryResponseResult;
import com.pinxixi.framework.model.response.ResponseResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

@Api(value="商品微API",description = "商品接口")
public interface GoodsControllerApi {

    @ApiOperation("商品添加接口")
    ResponseResult save(GoodsEntity goodsEntity);

    @ApiOperation("商品分页接口")
    ListResponseResult<Goods> findPage();

    @ApiOperation("提交审核接口")
    ResponseResult commitApply(Long[] ids);

    @ApiOperation("商品审核接口")
    ResponseResult goodsApply(Long[] ids,Integer status) throws Exception;

    @ApiOperation("商品查询接口")
    QueryResponseResult findOne(Long id);

    @ApiOperation("商品缓存接口")
    QueryResponseResult goodsCache(Long spuid,Long skuid);

}
